package com.rambler.fileupload.converters;

import com.rambler.fileupload.entity.SysFileInfo;
import com.rambler.api.fileupload.vo.FileUploadVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author suhao
 */
@Mapper(componentModel = "spring")
public interface FileInfoTransfer {

    FileInfoTransfer INSTANCE = Mappers.getMapper(FileInfoTransfer.class);

    // Entity 转 VO
    FileUploadVO toVO(SysFileInfo entity);

    // 也可以加反向转换，如果需要
    SysFileInfo toEntity(FileUploadVO vo);
}